package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.sale.SaleReturnOrder;

public class SaleReturnOrderEvent extends DomainEvent<SaleReturnOrder> {

	//销售退货单删除事件
	public static final String SALE_RETURN_ORDER_DESTORY = "saleReturnOrderDestory";

	public static SaleReturnOrderEvent buildSaleReturnOrderDestory(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALE_RETURN_ORDER_DESTORY;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

	//销售退货单取消事件
	public static final String SALE_RETURN_ORDER_CANCEL = "saleReturnOrderCancel";

	public static SaleReturnOrderEvent buildSaleReturnOrderCancel(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALE_RETURN_ORDER_CANCEL;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

	//销售退货单创建事件
	public static final String SALE_RETURN_ORDER_CREATED = "saleReturnOrderCreated";
	public static SaleReturnOrderEvent buildSaleReturnOrderCreated(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALE_RETURN_ORDER_CREATED;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

	//销售退货单更新事件
	public static final String SALE_RETURN_ORDER_UPDATED = "saleReturnOrderUpdated";
	public static SaleReturnOrderEvent buildSaleReturnOrderUpdated(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALE_RETURN_ORDER_UPDATED;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

	//销售退货单确认收货事件
	public static final String SALE_RETURN_ORDER_DELIVER_GOODS = "saleReturnOrderDeliverGoodsEvent";
	public static SaleReturnOrderEvent buildSaleReturnOrderDeliverGoods(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALE_RETURN_ORDER_DELIVER_GOODS;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

	public static final String SALERETURNORDER_CONFIRMRECEIPT_DESTORY = "saleReturnOrderConfirmReceiptEventDestory";

	public static SaleReturnOrderEvent buildSaleReturnOrderConfirmReceiptDestory(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALERETURNORDER_CONFIRMRECEIPT_DESTORY;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

	public static final String SALERETURNORDER_STATE_DESTORY = "saleReturnOrderStateEventDestory";

	public static SaleReturnOrderEvent buildSaleReturnOrderStateDestory(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALERETURNORDER_STATE_DESTORY;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

	public static final String SALERETURNORDER_REMOVE_STATE_DESTORY = "saleReturnOrderRemoveStateEventDestory";

	public static SaleReturnOrderEvent buildSaleReturnOrderRemoveStateDestory(Object[] values){
		SaleReturnOrderEvent saleReturnOrderEvent = new SaleReturnOrderEvent();
		saleReturnOrderEvent.eventName = SALERETURNORDER_REMOVE_STATE_DESTORY;
		saleReturnOrderEvent.values = values;
		return saleReturnOrderEvent;
	}

}
